package com.weiyuanstudio.nextstep.persistence.entity;

import com.weiyuanstudio.nextstep.util.AbstractSnowflakePersistable;
import jakarta.persistence.Entity;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 书
 */
@Entity
@Data
@EqualsAndHashCode(callSuper = true)
public class Book extends AbstractSnowflakePersistable {
    /**
     * 书籍ISBN号
     */
    private String isbn;
    /**
     * 书名
     */
    private String title;
    /**
     * 第几版
     */
    private String subtitle;
    /**
     * 作者
     */
    private String author;
    /**
     * 看到第几页
     */
    private Integer pageNumber;
}
